# coding:utf-8

"""
    学生信息库
"""

student = {
    1: {
        'name': 'wo'
    },
    2: {
        'name': 'ni'
    },
    3: {
        'name': 'ta'
    }
}


def get_all_students():
    for id_, value in student.items():
        print("id_:{}, name:{} ".format(id_, value['name']))
    return student


def add_student(**kwargs):
    if 'name' not in kwargs:
        print('缺少名称')
        return
    id_ = max(student) + 1
    student[id_] = {
        'name': kwargs['name']
    }


def delete_student(id_):
    if id_ not in student:
        print("不存在")
        return


add_student(name='是我')

get_all_students()
